package com.company.java.basic.Singleton;

public class Client {
    public static void main(String[] args) {
        Singleton s1 = Singleton.getInstance();
        System.out.println(s1);
        Singleton s2 = Singleton.getInstance();
        System.out.println(s2);

        Eager_Singleton e1 = Eager_Singleton.getEagerSingleton();
        System.out.println(e1);
        Eager_Singleton e2 = Eager_Singleton.getEagerSingleton();
        System.out.println(e2);


    }
}
